package com.mnsq.common.bean.entity.user;

import com.mnsq.common.bean.entity.CommonEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Administrator
 * @date 2019/3/18 0018
 */
@Data
@Accessors(chain = true)
@Entity
@Table(name = "a_user")
public class User extends CommonEntity {
    private static final long serialVersionUID = 3964490860504473343L;
    @Column(name = "pet_name", nullable = false, length = 30)
    private String petName;
    @Column(name = "birth_year", length = 5)
    private Integer birthYear;
    @Column(name = "birth_month", length = 2)
    private Integer birthMonth;
    @Column(name = "birth_day", length = 2)
    private Integer birthDay;
    @Column(name = "head_original_pic", length = 300)
    private String headOriginalPic;
    @Column(name = "small_pic", length = 300)
    private String smallPic;
    @Column(name = "middle_pic", length = 300)
    private String middlePic;
    /**
     * 职业
     */
    @Column(length = 150)
    private String vocation;
    @Column(name = "self_description", columnDefinition = "text default null")
    private String selfDescription;
    @Column(name = "role_id")
    private Long roleId;
}
